package j03zhuangtai;

public class J1 {
    public static void main(String[] args) {
        Thread mainTh = Thread.currentThread();
        Thread t1 = new Thread(()->{
            for (int i = 0; i < 100; i++) {
                System.out.println("i = " + i);
            }
            //获取主线程
            System.out.println("主状态："+mainTh.getState());
            System.out.println("t1 end");
        });
        t1.start();
        System.out.println(t1.getState());
    }
}
